<?php

namespace App\Http\Controllers\Common;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;
class updateFormUnique extends Controller
{
    public static function dataUnique($string)
    {
    	$result = DB::table('shop_brand')->select('name')
    						   			 ->where('name', $string)
    						   			 ->first();
    	if ($result) {
    		return true;
    	} else {
    		return false;
    	}
    }
}
